package com.marsoft.test.controller;

import com.marsoft.test.entity.CollateralInsuranceRrenewedEntity;
import com.marsoft.test.entity.WarehouseApplyEntity;
import com.marsoft.test.service.CollateralInsuranceRrenewedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * Description: <br/>
 */
@RestController
@RequestMapping("/CollateralInsuranceRrenewed")
public class CollateralInsuranceRrenewedController {
    @Autowired
    private CollateralInsuranceRrenewedService collateralInsuranceRrenewedService;
    @RequestMapping(value = "/findByApplyNoStatus")
    public List<CollateralInsuranceRrenewedEntity> findByApplyNoStatus(@RequestParam Integer collateralno) {
        List<CollateralInsuranceRrenewedEntity> byApplyNoCollateral = collateralInsuranceRrenewedService.findByApplyNoStatus(collateralno);
        return byApplyNoCollateral;
    }
}








